package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.CtByMonthMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.CtByMonth;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.CtByMonthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CtByMonthServiceImpl implements CtByMonthService {
    @Autowired
    private CtByMonthMapper ctByMonthMapper;

    @Override
    public List<CtByMonth> selectAll() {
        return ctByMonthMapper.selectAll();
    }

    @Override
    public int insert(CtByMonth ctByMonth) {
        return ctByMonthMapper.insert(ctByMonth);
    }
}
